<!-- 使用循环输出2000到2100年之间的闰年 -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>第二题</title>
</head>
<body>
    <script>
        for(var i = 2000;i <= 2100;i++){
            if(i % 400 ==0 || (i % 4 ==0 && i % 100 !== 0))
            console.log(i)
        }
    </script>
    
</body>
</html>